package com.nbsaas.boot.cms.rest.convert;

import com.nbsaas.boot.cms.data.entity.Navigation;
import com.nbsaas.boot.cms.api.domain.response.NavigationResponse;

import com.nbsaas.boot.utils.BeanDataUtils;
import com.nbsaas.boot.rest.api.Converter;
/**
* 导航菜单-实体对象转化成响应对象
*/

public class NavigationResponseConvert  implements Converter<NavigationResponse,Navigation> {

    @Override
    public NavigationResponse convert(Navigation source) {
        NavigationResponse  result = new  NavigationResponse();
        BeanDataUtils.copyProperties(source, result);
        return result;
    }

}

